package com.atguigu.gulimall.search.thread;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

public class ThreadTest_runable001 {
    public static ExecutorService service = Executors.newFixedThreadPool(10);
    public static void main(String[] args) {
        System.out.println("main...........start........");
//        runable01 run = new runable01();
//        new Thread(run).start();

        service.execute(new runable01());

        System.out.println("main...........end........");
    }
    public static class runable01 implements Runnable{
        @Override
        public void run() {
            System.out.println("当前线程："+Thread.currentThread().getId());
            int i = 10%3 ;
            System.out.println("运行结果："+i);
        }
    }
}